bitkeeper revision 1.1159.258.121 (4284a2fe8e-teEoJtU8EYiHY0jsBdg)
authormafetter@fleming.research <mafetter@fleming.research>
Fri, 13 May 2005 12:52:14 +0000 (12:52 +0000)
committermafetter@fleming.research <mafetter@fleming.research>
Fri, 13 May 2005 12:52:14 +0000 (12:52 +0000)
Fix construction of ref directories when no patches are present

buildconfigs/Rules.mk

index a2c4cc5ecc24223edadf2a87d7c63542dce680bd..11678ed9dbdf4602ffc71c69a19aae99759d7abf 100644 (file)
@@ -71,8 +71,8 @@ clean::
 ref-%/.valid-ref: pristine-%/.valid-pristine
        rm -rf $(@D)
        cp -al $(<D) $(@D)
-       [ -d patches/$* ] && \
-         for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done
+       ([ -d patches/$* ] && \
+         for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done) || true
        touch $@ # update timestamp to avoid rebuild
 
 %-build: